package com.lagou.edu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "lagou-service-user")
public interface TokenFeignClient {

    /**
     * 根据token查询⽤户登录邮箱
     * @param token
     * @return
     */
    @RequestMapping(value = "/user/info/{token}")
    public String getEmailByToken(@PathVariable(value = "token") String token);
}
